Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --kill-on-exit option #97

Closed
wants to merge 1 commit into from
Closed

Conversation

guillon
Copy link
Contributor

@guillon guillon commented Apr 15, 2016

Add a --kill-on-exit option that kill all pending tracee processes when the main command (i.e. the command passed as proot argument, which is the first tracee created) exits.

This is useful for proot commands which are supposed to return without leaving detached processes around.

In particular for instance a command may not correctly wait detached processes and the effect is that proot will keep waiting for all tracee to complete.

Thus generally when launching a command which is not supposed to detach, it would be advised to use proot --kill-on-exit ...

NOTE; I suppose that it may be feasible to reimplement this as a plugin. Please comment on this.

Add --kill-on-exit option which kills all tracees when the initial
process exits.
This option can be used to garbage collect detached tracees which
may be left around and which would block unexpectedly the proot
process from exiting.

Add tests/test-killexit.sh unit test.
@vincenthage
Copy link
Contributor

vincenthage commented Jun 18, 2017

Hi!
Great work!

Can you please update the PR (with a small commit or by closing/opening it) so that Travis CI can run the tests and your new test too?

If everything checks out we can merge the PR.

@alkino
Copy link

alkino commented Jun 19, 2017

I have push it with a small change for running the test with zsh. (status is a reserved keywork on zsh).

@alkino alkino closed this Jun 19, 2017
@jopasserat
Copy link
Member

@alkino can you point us to where you pushed these changes?

@alkino
Copy link

alkino commented Jun 19, 2017

afe225d

I try to update this PR but I failed to it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants